package com.kunbo.cn.entity.core.error;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

/**
 * 
 * <p>Title: CarAbnormal</p>
 * <p>Description:车辆过磅异常信息记录 </p>
 * <p>Company: www.kunbo.cn</p> 
 * @author	yang'f
 * @date	2019年4月26日下午2:54:47
 * @version 1.0
 */
@Entity
@Table(name="car_abnormal")
@EntityListeners(AuditingEntityListener.class)
public class CarAbnormal implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id @Column(name="id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;//id
	@CreatedDate
    private Date createTime;//创建时间
    @LastModifiedDate
    private Date lastModifiedTime;//修改时间
    
    private String plateNumber;//车牌号
    private String carType;//车辆类型
    private String driverName;//司机名称
    private String idCard;//司机身份证号
    private String material;//物料
    private String supplier;//供应商
    private String custom;//客户
    private String errorType;//错误类型
    private String nameOfLogisticsCompany;//物流公司名称
    private BigDecimal errorValue;//异常值
    private String remark;//备注
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getLastModifiedTime() {
		return lastModifiedTime;
	}
	public void setLastModifiedTime(Date lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}
	public String getPlateNumber() {
		return plateNumber;
	}
	public void setPlateNumber(String plateNumber) {
		this.plateNumber = plateNumber;
	}
	public String getCarType() {
		return carType;
	}
	public void setCarType(String carType) {
		this.carType = carType;
	}
	public String getDriverName() {
		return driverName;
	}
	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public String getMaterial() {
		return material;
	}
	public void setMaterial(String material) {
		this.material = material;
	}
	public String getSupplier() {
		return supplier;
	}
	public void setSupplier(String supplier) {
		this.supplier = supplier;
	}
	public String getCustom() {
		return custom;
	}
	public void setCustom(String custom) {
		this.custom = custom;
	}
	public String getErrorType() {
		return errorType;
	}
	public void setErrorType(String errorType) {
		this.errorType = errorType;
	}
	public String getNameOfLogisticsCompany() {
		return nameOfLogisticsCompany;
	}
	public void setNameOfLogisticsCompany(String nameOfLogisticsCompany) {
		this.nameOfLogisticsCompany = nameOfLogisticsCompany;
	}
	
	public BigDecimal getErrorValue() {
		return errorValue;
	}
	public void setErrorValue(BigDecimal errorValue) {
		this.errorValue = errorValue;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	//毛重
	
	public CarAbnormal() {
		super();
		// TODO Auto-generated constructor stub
	}
	public CarAbnormal(String plateNumber, String carType, String driverName, String idCard, String material,
			String supplier, String custom, String errorType, String nameOfLogisticsCompany, BigDecimal errorValue,
			String remark) {
		super();
		this.plateNumber = plateNumber;
		this.carType = carType;
		this.driverName = driverName;
		this.idCard = idCard;
		this.material = material;
		this.supplier = supplier;
		this.custom = custom;
		this.errorType = errorType;
		this.nameOfLogisticsCompany = nameOfLogisticsCompany;
		this.errorValue = errorValue;
		this.remark = remark;
	}
	

	
	
	
	


}
